package org.sunrise.game.rpc.example.service.test1;

import org.sunrise.game.rpc.annotation.RpcMethod;
import org.sunrise.game.rpc.annotation.RpcService;
import org.sunrise.game.rpc.example.gen.CallEnum;
import org.sunrise.game.rpc.function.RpcFunction;
import org.sunrise.game.rpc.service.BaseService;

@RpcService
public class TestService1 extends BaseService {
    public TestService1(String nodeId) {
        super(nodeId);
    }

    @RpcMethod
    public void test(long id) {
        returns("res", id * 10);

        RpcFunction.newInstance().call(CallEnum.TestService2_test);
    }
}
